package com.example.hutudshelf.security;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyGrantedAuthority implements GrantedAuthority {

    // 权限名称
    private String roleName;

    @Override
    public String getAuthority() {
        return this.roleName;
    }
}
